package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GysptKqworksMapper;
import com.ruoyi.gcgl.domain.GysptKqworks;
import com.ruoyi.gcgl.service.IGysptKqworksService;
import com.ruoyi.common.core.text.Convert;

/**
 * 每日出勤情况登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class GysptKqworksServiceImpl implements IGysptKqworksService 
{
    @Autowired
    private GysptKqworksMapper gysptKqworksMapper;

    /**
     * 查询每日出勤情况登记
     * 
     * @param id 每日出勤情况登记主键
     * @return 每日出勤情况登记
     */
    @Override
    public GysptKqworks selectGysptKqworksById(Long id)
    {
        return gysptKqworksMapper.selectGysptKqworksById(id);
    }

    /**
     * 查询每日出勤情况登记列表
     * 
     * @param gysptKqworks 每日出勤情况登记
     * @return 每日出勤情况登记
     */
    @Override
    public List<GysptKqworks> selectGysptKqworksList(GysptKqworks gysptKqworks)
    {
        return gysptKqworksMapper.selectGysptKqworksList(gysptKqworks);
    }

    /**
     * 新增每日出勤情况登记
     * 
     * @param gysptKqworks 每日出勤情况登记
     * @return 结果
     */
    @Override
    public int insertGysptKqworks(GysptKqworks gysptKqworks)
    {
        return gysptKqworksMapper.insertGysptKqworks(gysptKqworks);
    }

    /**
     * 修改每日出勤情况登记
     * 
     * @param gysptKqworks 每日出勤情况登记
     * @return 结果
     */
    @Override
    public int updateGysptKqworks(GysptKqworks gysptKqworks)
    {
        return gysptKqworksMapper.updateGysptKqworks(gysptKqworks);
    }

    /**
     * 批量删除每日出勤情况登记
     * 
     * @param ids 需要删除的每日出勤情况登记主键
     * @return 结果
     */
    @Override
    public int deleteGysptKqworksByIds(String ids)
    {
        return gysptKqworksMapper.deleteGysptKqworksByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除每日出勤情况登记信息
     * 
     * @param id 每日出勤情况登记主键
     * @return 结果
     */
    @Override
    public int deleteGysptKqworksById(Long id)
    {
        return gysptKqworksMapper.deleteGysptKqworksById(id);
    }
}
